﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Taobao.Tools2.Domain.EntityFramework;
using Taobao.Tools2.Domain;
using Taobao.Common;

namespace Taobao.Tools2
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            //using (var context = new EfDbContext())
            //{
            //    var repository = new EntityRepository<OrderInfo>(context);
            //    var result = repository.FindAll().ToList();
            //}
            ToolConfiguration.Load();
            //if (!AuthorizationProvider.Current.Authorize("小布叮旗舰"))
            //{
            //    MessageBox.Show("对不起，您的程序未经授权，不能使用！");
            //    Application.Exit();
            //    return;
            //}
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
    }
}
